package com.shopoo.dto.cqe;

import com.shopoo.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @Description: 更新角色实体
 * @Auther: limy66
 * @Date: 2021/05/12/10:22
 */
@Data
public class RoleUpdateCmd extends Command {

    @NotNull(message = "角色Id不能为空")
    @Schema(title = "角色Id")
    private Long roleId;

    @Schema(title = "角色名称")
    @NotNull(message = "角色名称不能为空")
    @Size(min = 1, max = 20, message = "角色名称长度必须大于等于1个字符且小于等于20个字符")
    private String name;

    @Schema(title = "角色备注")
    @NotNull(message = "角色备注不能为空")
    @Size(min = 1, max = 20, message = "角色备注长度必须大于等于1个字符且小于等于20个字符")
    private String remark;

    @Schema(title = "状态（0-无效，1-有效）")
    private Short status;

    @Schema(title = "菜单ID列表")
    private Long[] menuIds;
}
